package com.gqzmy.springboot3.mapper;

import com.gqzmy.springboot3.entity.Role;
import com.gqzmy.springboot3.vo.RoleQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 周小哥  gqzmy@163.com 2023/4/20 16:55
 */
@Mapper
public interface RoleMapper {

    Role getById(@Param("id") String id);

    Role getByRoleName(@Param("roleName") String roleName);

    int deleteById(@Param("id") String id);

    int insertRole(Role role);

    int updateRole(Role role);

    List<Role> getRoleList(RoleQuery query);

}
